--[[-- @Author:      feilong-- @DateTime:    2020-11-13 23:05:48-- @Description: redis消息的处理-- @Example:	local data = g:call(".redis.service", nil, "get", "num")	g.log:debug("redis data", data)--]]local skynet = require "skynet.manager"----------------------------------------------------------- class---------------------------------------------------------local Service = class("Redis")function Service:ctor(name)    self.message_handler = new("redis.handler")    self:register()endfunction Service:register()    g.dispatch:register('start', handler(self, self.onStart))    g.dispatch:register('close', handler(self, self.onClose))endfunction Service:onStart()    return trueendfunction Service:onClose()    return trueendreturn Service